package com.xyz.tag.html.element;

import com.xyz.tag.html.XYIHTMLTag;


public class XYText implements XYIHTMLTag {

  private static final long serialVersionUID = 8397445138431377308L;

  private String text;

  public XYText( String text ) {
    if ( text == null )
      this.text = "";
    else
      this.text = text;
  }

  @Override
  public String draw() {
    return text;
  }

  public String getText() {
    return text;
  }
}